package priv.mill.generator;

import java.util.ArrayList;
import java.util.List;

public class Table {

	private String tableName;
	
	private List<Column> columns;
	{
		columns=new ArrayList<>();
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	
	@Override
	public String toString() {
		return "Table [tableName=" + tableName + ", columns=" + columns + "]";
	}

	public List<Column> getColumns() {
		return columns;
	}

	public void setColumns(List<Column> columns) {
		this.columns = columns;
	}

	public void addColumn(Column column) {
		this.columns.add(column);
	}
	
	
}
